package com.mypg;

import java.sql.Timestamp;

public class News {
    private int news_id;
    private String news_title;
    private String news_content;
    private String news_img;
    private Timestamp news_time;
    private String news_class;
    private int news_read;

    public News(){}
    public News(int news_id, String news_title, String news_content, String news_img, Timestamp news_time, String news_class,int news_read) {
        this.news_id = news_id;
        this.news_title = news_title;
        this.news_content = news_content;
        this.news_img = news_img;
        this.news_time = news_time;
        this.news_class = news_class;
        this.news_read=news_read;
    }

    public int getNews_id() {
        return news_id;
    }

    public void setNews_id(int news_id) {
        this.news_id = news_id;
    }

    public String getNews_title() {
        return news_title;
    }

    public void setNews_title(String news_title) {
        this.news_title = news_title;
    }

    public String getNews_content() {
        return news_content;
    }

    public void setNews_content(String news_content) {
        this.news_content = news_content;
    }

    public String getNews_img() {
        return news_img;
    }

    public void setNews_img(String news_img) {
        this.news_img = news_img;
    }

    public Timestamp getNews_time() {
        return news_time;
    }

    public void setNews_time(Timestamp news_time) {
        this.news_time = news_time;
    }

    public String getNews_class() {
        return news_class;
    }

    public void setNews_class(String news_class) {
        this.news_class = news_class;
    }

    public int getNews_read() {
        return news_read;
    }

    public void setNews_read(int news_read) {
        this.news_read = news_read;
    }

    @Override
    public String toString() {
        return "News{" +
                "news_id=" + news_id +
                ", news_title='" + news_title + '\'' +
                ", news_content='" + news_content + '\'' +
                ", news_img='" + news_img + '\'' +
                ", news_time=" + news_time +
                ", news_class='" + news_class + '\'' +
                ", news_read=" + news_read +
                '}';
    }
}
